#!/usr/bin/env python
# -*- coding:utf-8 -*-

import os, sys

def main():
    txtfile = open(sys.argv[1] + ".out3",'r')
    txt = txtfile.read()
    txtfile.close()
    bigrams = []
    w1 = ""
    for w2 in txt.split(' '):
        bigrams.append((w1,w2))
        w1 = w2
     
#    print bigrams[1:]

if __name__ == '__main__':
    main()
